﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shi_visa_Info6.aspx.cs"
    Inherits="FS.Web.BLL.Visa_Base.shi_visa_Info6" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="frm">
        <tr>
            <th>
                供应商：
            </th>
            <td>
                <input id="Supply_Name" runat="server" type="text" class="txt" datacol="yes" err="供应商"
                    checkexpession="NotNull" style="width: 100px" />
            </td>
            <th>
                送签时间：
            </th>
            <td>
                <input id="InfoDetail_Submitdate" name="InfoDetail_Submitdate" runat="server" type="text"
                    class="txt" datacol="yes" err="收签时间" style="width: 100px" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })" />
            </td>
            <th>
                国家：
            </th>
            <td>
                <asp:DropDownList ID="ddlp_city" runat="server" AutoPostBack="True" 
                    Style="width: 100px">
                </asp:DropDownList>
            </td>
            <th>
                签证类型：
            </th>
            <td>
                <select id="Ref_CertType" runat="server" type="text" class="select" style="width: 196px" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <input id="Hchange" type="hidden" runat="server" value="0" />
                <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span>查 询</asp:LinkButton>
                <asp:LinkButton ID="lbtExport" OnClientClick="getHtmltoValue()" runat="server" class="button green"
                    OnClick="lbtExport_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/16/page_excel.png') no-repeat scroll 0px 4px;">
        </span>导 出</asp:LinkButton>
                <asp:LinkButton ID="lbtPrint" runat="server" class="button green"><span class="icon-botton"
            style="background: url('../../Themes/images/16/Printer.png') no-repeat scroll 0px 4px;">
        </span>打 印</asp:LinkButton>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="printHid" runat="server" />
    <div id="printDiv">
        <table id="table1" class="grid" singleselect="true">
            <thead>
                <tr>
                    <td style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="全选">
                            &nbsp;</label>
                    </td>
                    <td style="width: 110px; text-align: center;">
                        客人姓名
                    </td>
                    <td style="width: 100px; text-align: center;">
                        护照号
                    </td>
                    <td style="width: 100px; text-align: center;">
                        签证国家
                    </td>
                    <td style="width: 100px; text-align: center;">
                        签证类型
                    </td>
                    <td style="width: 70px; text-align: center;">
                        送签备注
                    </td>
                    <td style="width: 70px; text-align: center;">
                        资料补送日期
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("Data_CompletionDate")%>" name="checkbox" />
                            </td>
                            <td style="width: 110px;">
                                <%#Eval("InfoDetail_user")%>
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("InfoDetail_cardno")%>
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("City_name")%>
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("parm_Value")%>
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("Design_Remark")%>
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("Data_CompletionDate")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% 
                            if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='8' style='color:red;text-align:center'>没有找到您要的相关数据!！</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    <uc1:PageControl ID="PageControl1" runat="server" />
    </form>
    <script type="text/javascript">
        function getHtmltoValue() {
            document.getElementById("<%=printHid.ClientID%>").value = document.getElementById("printDiv").innerHTML;
        }     
    </script>
</body>
</html>
</form> </body> </html> 